const path = require("path");

// 自定义主题的文件路径
const coverPath = path.join(__dirname, "./src/cover.less");

module.exports = {
  css: {
    loaderOptions: {
      less: {
        modifyVars: {
          // 通过 less 文件覆盖（文件路径为绝对路径）
          hack: `true; @import "${coverPath}";`,
        },
        globalVars: {
          "geek-color": "#FC6627",
          "geek-gray-color": "#F7F8FA",
        },
      },
    },
  },
  runtimeCompiler: true,
};
